<div class="well sidebar-nav">
    <form name="navigationForm" action="" method="post">
        <input type="hidden" name="mainPanel" value="" id="hx" />
    </form>
    <ul class="nav nav-list">
        <li class="nav-header">Employee Options</li>
        <li><a href="javascript: submitform('Upcoming Shifts')">Upcoming Shifts</a></li>
        <li><a href="javascript: submitform('History')">History</a></li>
        <li><a href="javascript: submitform('Profile')">Profile</a></li>
        <li><a href="javascript: submitform('Shift Shop')">Shift Shop</a></li>
        <li><a href="javascript: submitform('Logout')">Logout</a></li>
        <?php if ($_SESSION['isManager']) : ?>
            <li class="nav-header">Manager Options</li>
            <li><a href="javascript: submitform('Employee Manager')">Employee Manager</a></li>
            <li><a href="javascript: submitform('Manager Manager')">Manager Manager</a></li>
            <li><a href="javascript: submitform('Shift Manager')">Shift Manager</a></li>
            <li><a href="javascript: submitform('Requests Manager')">Requests Manager</a></li>
            <li class="nav-header">Add New</li>
            <li><a href="javascript: submitform('Add Shift')">Add Shift</a></li>
            <li><a href="javascript: submitform('Add Account')">Add Account</a></li>
        <?php endif; ?>
    </ul>
</div>
<script type="text/javascript">
    function submitform(val){
        $("#hx").val(val);
        document.navigationForm.submit();
    }
</script>